Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

gl2ext.h

Go to the documentation of this file.
00001 #ifndef __gl2ext_h_
00002 #define __gl2ext_h_
00003 
00004 #ifndef __gl2_h_
00005 #   include <GLES2/gl2.h>
00006 #endif
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 /*
00013 ** License Applicability. Except to the extent portions of this file are
00014 ** made subject to an alternative license as permitted in the SGI Free
00015 ** Software License B, Version 1.0 (the "License"), the contents of this
00016 ** file are subject only to the provisions of the License. You may not use
00017 ** this file except in compliance with the License. You may obtain a copy
00018 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
00019 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
00020 **
00021 ** http://oss.sgi.com/projects/FreeB
00022 **
00023 ** Note that, as provided in the License, the Software is distributed on an
00024 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
00025 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
00026 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
00027 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
00028 **
00029 ** Original Code. The Original Code is: OpenGL Sample Implementation,
00030 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
00031 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
00032 ** Copyright in any portions created by third parties is as indicated
00033 ** elsewhere herein. All Rights Reserved.
00034 **
00035 ** Additional Notice Provisions: The application programming interfaces
00036 ** established by SGI in conjunction with the Original Code are The
00037 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
00038 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
00039 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
00040 ** Window System(R) (Version 1.3), released October 19, 1998. This software
00041 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
00042 ** published by SGI, but has not been independently verified as being
00043 ** compliant with the OpenGL(R) version 1.2.1 Specification.
00044 */
00045 
00046 #ifndef GL_APIENTRYP
00047 #   define GL_APIENTRYP GL_APIENTRY*
00048 #endif
00049 
00050 /*------------------------------------------------------------------------*
00051  * OES extension tokens
00052  *------------------------------------------------------------------------*/
00053 
00054 /* GL_OES_compressed_ETC1_RGB8_texture */
00055 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00056 #define GL_ETC1_RGB8_OES                                        0x8D64
00057 #endif
00058 
00059 /* GL_OES_compressed_paletted_texture */
00060 #ifndef GL_OES_compressed_paletted_texture
00061 #define GL_PALETTE4_RGB8_OES                                    0x8B90
00062 #define GL_PALETTE4_RGBA8_OES                                   0x8B91
00063 #define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
00064 #define GL_PALETTE4_RGBA4_OES                                   0x8B93
00065 #define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
00066 #define GL_PALETTE8_RGB8_OES                                    0x8B95
00067 #define GL_PALETTE8_RGBA8_OES                                   0x8B96
00068 #define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
00069 #define GL_PALETTE8_RGBA4_OES                                   0x8B98
00070 #define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
00071 #endif
00072 
00073 /* GL_OES_EGL_image */
00074 #ifndef GL_OES_EGL_image
00075 typedef void* GLeglImageOES;
00076 #endif
00077 
00078 /* GL_OES_depth24 */
00079 #ifndef GL_OES_depth24
00080 #define GL_DEPTH_COMPONENT24_OES                                0x81A6
00081 #endif
00082 
00083 /* GL_OES_depth32 */
00084 #ifndef GL_OES_depth32
00085 #define GL_DEPTH_COMPONENT32_OES                                0x81A7
00086 #endif
00087 
00088 /* GL_OES_mapbuffer */
00089 #ifndef GL_OES_mapbuffer
00090 /* GL_READ_ONLY and GL_READ_WRITE not supported */
00091 #define GL_WRITE_ONLY_OES                                       0x88B9
00092 #define GL_BUFFER_ACCESS_OES                                    0x88BB
00093 #define GL_BUFFER_MAPPED_OES                                    0x88BC
00094 #define GL_BUFFER_MAP_POINTER_OES                               0x88BD
00095 #endif
00096 
00097 /* GL_OES_rgb8_rgba8 */
00098 #ifndef GL_OES_rgb8_rgba8
00099 #define GL_RGB8_OES                                             0x8051
00100 #define GL_RGBA8_OES                                            0x8058
00101 #endif
00102 
00103 /* GL_OES_stencil1 */
00104 #ifndef GL_OES_stencil1
00105 #define GL_STENCIL_INDEX1_OES                                   0x8D46
00106 #endif
00107 
00108 /* GL_OES_stencil4 */
00109 #ifndef GL_OES_stencil4
00110 #define GL_STENCIL_INDEX4_OES                                   0x8D47
00111 #endif
00112 
00113 /* GL_OES_texture3D */
00114 #ifndef GL_OES_texture3D
00115 #define GL_TEXTURE_WRAP_R_OES                                   0x8072
00116 #define GL_TEXTURE_3D_OES                                       0x806F
00117 #define GL_TEXTURE_BINDING_3D_OES                               0x806A
00118 #define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
00119 #define GL_SAMPLER_3D_OES                                       0x8B5F
00120 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
00121 #endif
00122 
00123 /* GL_OES_texture_half_float */
00124 #ifndef GL_OES_texture_half_float
00125 #define GL_HALF_FLOAT_OES                                       0x8D61
00126 #endif
00127 
00128 /* GL_OES_vertex_half_float */
00129 /* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
00130 
00131 /* GL_AMD_compressed_3DC_texture */
00132 #ifndef GL_AMD_compressed_3DC_texture
00133 #define GL_3DC_X_AMD                                            0x87F9
00134 #define GL_3DC_XY_AMD                                           0x87FA
00135 #endif
00136 
00137 /* GL_AMD_compressed_ATC_texture */
00138 #ifndef GL_AMD_compressed_ATC_texture
00139 #define GL_ATC_RGB_AMD                                          0x8C92
00140 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
00141 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
00142 #endif
00143 
00144 /* GL_EXT_texture_filter_anisotropic */
00145 #ifndef GL_EXT_texture_filter_anisotropic
00146 #define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
00147 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
00148 #endif
00149 
00150 /*------------------------------------------------------------------------*
00151  * OES extension functions
00152  *------------------------------------------------------------------------*/
00153 
00154 /* GL_OES_compressed_ETC1_RGB8_texture */
00155 #ifndef GL_OES_compressed_ETC1_RGB8_texture
00156 #define GL_OES_compressed_ETC1_RGB8_texture 1
00157 #endif
00158 
00159 /* GL_OES_compressed_paletted_texture */
00160 #ifndef GL_OES_compressed_paletted_texture
00161 #define GL_OES_compressed_paletted_texture 1
00162 #endif
00163 
00164 /* GL_OES_EGL_image */
00165 #ifndef GL_OES_EGL_image
00166 #define GL_OES_EGL_image 1
00167 #ifdef GL_GLEXT_PROTOTYPES
00168 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
00169 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
00170 #endif
00171 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
00172 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
00173 #endif
00174 
00175 /* GL_OES_depth24 */
00176 #ifndef GL_OES_depth24
00177 #define GL_OES_depth24 1
00178 #endif
00179 
00180 /* GL_OES_depth32 */
00181 #ifndef GL_OES_depth32
00182 #define GL_OES_depth32 1
00183 #endif
00184 
00185 /* GL_OES_element_index_uint */
00186 #ifndef GL_OES_element_index_uint
00187 #define GL_OES_element_index_uint 1
00188 #endif
00189 
00190 /* GL_OES_fbo_render_mipmap */
00191 #ifndef GL_OES_fbo_render_mipmap
00192 #define GL_OES_fbo_render_mipmap 1
00193 #endif
00194 
00195 /* GL_OES_fragment_precision_high */
00196 #ifndef GL_OES_fragment_precision_high
00197 #define GL_OES_fragment_precision_high 1
00198 #endif
00199 
00200 /* GL_OES_mapbuffer */
00201 #ifndef GL_OES_mapbuffer
00202 #define GL_OES_mapbuffer 1
00203 #ifdef GL_GLEXT_PROTOTYPES
00204 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
00205 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
00206 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
00207 #endif
00208 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
00209 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
00210 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
00211 #endif
00212 
00213 /* GL_OES_rgb8_rgba8 */
00214 #ifndef GL_OES_rgb8_rgba8
00215 #define GL_OES_rgb8_rgba8 1
00216 #endif
00217 
00218 /* GL_OES_stencil1 */
00219 #ifndef GL_OES_stencil1
00220 #define GL_OES_stencil1 1
00221 #endif
00222 
00223 /* GL_OES_stencil4 */
00224 #ifndef GL_OES_stencil4
00225 #define GL_OES_stencil4 1
00226 #endif
00227 
00228 /* GL_OES_texture_3D */
00229 #ifndef GL_OES_texture_3D
00230 #define GL_OES_texture_3D 1
00231 #ifdef GL_GLEXT_PROTOTYPES
00232 GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);
00233 GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
00234 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00235 GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
00236 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
00237 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00238 #endif
00239 typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
00240 typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
00241 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
00242 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
00243 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
00244 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
00245 #endif
00246 
00247 /* GL_OES_texture_float_linear */
00248 #ifndef GL_OES_texture_float_linear
00249 #define GL_OES_texture_float_linear 1
00250 #endif
00251 
00252 /* GL_OES_texture_half_float_linear */
00253 #ifndef GL_OES_texture_half_float_linear
00254 #define GL_OES_texture_half_float_linear 1
00255 #endif
00256 
00257 /* GL_OES_texture_float */
00258 #ifndef GL_OES_texture_float
00259 #define GL_OES_texture_float 1
00260 #endif
00261 
00262 /* GL_OES_texture_half_float */
00263 #ifndef GL_OES_texture_half_float
00264 #define GL_OES_texture_half_float 1
00265 #endif
00266 
00267 /* GL_OES_texture_npot */
00268 #ifndef GL_OES_texture_npot
00269 #define GL_OES_texture_npot 1
00270 #endif
00271 
00272 /* GL_OES_vertex_half_float */
00273 #ifndef GL_OES_vertex_half_float
00274 #define GL_OES_vertex_half_float 1
00275 #endif
00276 
00277 /* GL_AMD_compressed_3DC_texture */
00278 #ifndef GL_AMD_compressed_3DC_texture
00279 #define GL_AMD_compressed_3DC_texture 1
00280 #endif
00281 
00282 /* GL_AMD_compressed_ATC_texture */
00283 #ifndef GL_AMD_compressed_ATC_texture
00284 #define GL_AMD_compressed_ATC_texture 1
00285 #endif
00286 
00287 /* GL_EXT_texture_filter_anisotropic */
00288 #ifndef GL_EXT_texture_filter_anisotropic
00289 #define GL_EXT_texture_filter_anisotropic 1
00290 #endif
00291 
00292 #ifdef __cplusplus
00293 }
00294 #endif
00295 
00296 #endif /* __gl2ext_h_ */

Generated on Thu Jan 31 11:29:22 2008 for ES Framework by doxygen 1.3.6